package org.example;


import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;



//配置类 用于暴露服务发现需要的类给外面
@Configuration
public class MyConfiguration {
    @Bean
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }

    @Bean
    public CustomConfig customConfig() {
        return new CustomConfig();
    }


    @Bean
    public RegisterService registerService() {
        return new RegisterService();
    }


    @Bean
    public HeartbeatService heartbeatService() {
        return new HeartbeatService();
    }

}
